LOGIN=$1

if [ ${LOGIN:-0} = 0 ]; then
	echo "Oracle username and password must be entered"
	exit 1
fi

echo "Generating Log File"


echo "$HOME/crst_fm/PO/ctl"
cd $HOME/crst_fm/PO/ctl
CAPPO_APPROVAL_GROUP.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_APPROVAL_GROUP_ASSIGNMENT.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_APPROVAL_GROUP_RULE.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_APPROVAL_PATH.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_APPROVED_SUPPLIER_LIST.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_APPROVED_SUPPLIER_LIST_ATTRIBUTE.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_ATTACHMENT_ATTACHED_DOCUMENT.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_ATTACHMENT_DOCUMENT_B.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_ATTACHMENT_DOCUMENT_TL.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_BUYER.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_DOCUMENT_TYPE_B.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_DOCUMENT_TYPE_TL.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_ITEM_B.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_ITEM_TL.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_JOB_B.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_JOB_TL.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_LOCATION_B.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_LOCATION_TL.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_ORGANIZATION_ACCESS.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_POSITION_B.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_POSITION_HIERARCHY_ELEMENT.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_POSITION_HIERARCHY_STRUCTURE.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_POSITION_HIERARCHY_VERSION.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_POSITION_TL.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_PURCHASE_OPTION.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_PURCHASE_ORDER_DISTRIBUTION.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_PURCHASE_ORDER_HEADER.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_PURCHASE_ORDER_LINE.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_PURCHASE_ORDER_LINE_LOCATION.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_RECEIPT_HEADER.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_RECEIPT_LINE.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
#CAPPO_RECEIPT_TRANSACTION.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_RECEIVING_OPTION.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
#CAPPO_REQUISITION_DISTRIBUTION.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_REQUISITION_HEADER.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_REQUISITION_LINE.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_RFQ_VENDOR.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_SUPPLIER.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_SUPPLIER_CONTACT.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_SUPPLIER_LIST.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log
CAPPO_SUPPLIER_SITE.sh $LOGIN >> $HOME/crst_fm/MISC/log/logfile.log

echo "Log File Complete"